package cn.lngaosu.lwyd.module.integration.job;

import cn.lngaosu.lwyd.framework.quartz.core.handler.JobHandler;
import cn.lngaosu.lwyd.framework.tenant.core.context.TenantContextHolder;
import cn.lngaosu.lwyd.framework.tenant.core.job.TenantJob;
import cn.lngaosu.lwyd.module.integration.service.weixinuser.WeixinUserService;
import cn.lngaosu.lwyd.module.system.dal.dataobject.user.AdminUserDO;
import cn.lngaosu.lwyd.module.system.dal.mysql.user.AdminUserMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class WeixinUserJob implements JobHandler {

    @Resource
    private WeixinUserService weixinUserService;

    @Override
    @TenantJob
    public String execute(String param) {
        weixinUserService.syncWeixinUser();
        return "同步微信用户数据";
    }

}
